#!/sbin/openrc-run
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

depend() {
	need mta
}

start() {
	ebegin "Starting the DNSSEC monitoring daemon"
	start-stop-daemon --start --pidfile ${DONUTSD_PIDFILE} --make-pidfile --background --exec ${DONUTSD_CMD} -- -i ${DONUTSD_CONFPATH} ${DONUTSD_OPTS}
	eend $? "failed to start donutsd"
}

stop() {
	ebegin "Stopping donutsd"
	start-stop-daemon --stop --pidfile ${DONUTSD_PIDFILE}
	eend $? "Failed to stop donutsd"
}
